package com.freemalll.system.domain;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.freemalll.common.core.annotation.Excel;
import com.freemalll.common.core.annotation.Excel.ColumnType;

/**
 * 账户领导关系表 sys_account_leader
 * 
 * @author freemalll
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_account_leader")
public class SysAccountLeader
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Excel(name = "主键ID", cellType = ColumnType.STRING)
    private String id;

    /** 账户登录id */
    @TableField("account_id")
    @Excel(name = "账户登录id")
    @NotBlank(message = "账户登录id不能为空")
    @Size(min = 0, max = 80, message = "账户登录id不能超过80个字符")
    private String accountId;

    /** 领导账户登录id */
    @TableField("leader_account_id")
    @Excel(name = "领导账户登录id")
    @NotBlank(message = "领导账户登录id不能为空")
    @Size(min = 0, max = 80, message = "领导账户登录id不能超过80个字符")
    private String leaderAccountId;
}